<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE>int pblKfUpdate</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.9">
</HEAD>
 <center>
<H2>Program Base Library Functions</H2>
</center>

<H2>int <A HREF="#DOC.DOCU">pblKfUpdate</A></H2><H2>( <!1><A HREF="pblKeyFile_t.html">pblKeyFile_t</A>*  k,   unsigned char*  data,<BR>&nbsp;  long datalen )</H2><BLOCKQUOTE> update the data of the current record</BLOCKQUOTE>

<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>
update the data of the current record

<P>the current record of the file is updated with the new data given

<P>
<P>
<B>RESTRICTIONS</B>:
<BR> - the file must be open for update,
<BR> - if the new datalen of the record is not bigger than the old datalen,
the data will be updated in place, otherwise the new data of the
record will be appended to the file, the space previously used for 
the data of the record will not be reused in this case,
<BR> - data must point to the new data be inserted,
<BR> - datalen must not be negative,
<BR> - if datalen == 0, the pointer data is not evaluated at all

<P></BLOCKQUOTE>
<DL><DT><DT><B>Parameters:</B><DD><B>k</B> -   key file to delete record from                    
<BR><B>data</B> -   new data to update with                           
<BR><B>datalen</B> -   length of the new data                            <BR><DT><B>Returns:</B><DD>  int rc == 0: call went ok
<BR>  int rc != 0: some error occured, see pbl_errno
<BR><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
